# import redis
# #
# # r = redis.Redis(host="localhost", port="6379", decode_responses=False)
# #
# # r.set("key1", "7788", 10)
# #
# # x = r.get("key1")
# #
# # print(x)

from h2004a_md.settings import WEIBO_App_Key, WEIBO_URL, WEIBO_App_Secret
import requests
from urllib.parse import urlencode

weibo_url_base = "https://api.weibo.com/oauth2/authorize"

params = {
    "client_id": WEIBO_App_Key,
    "redirect_uri": WEIBO_URL,
}
weibo_url = weibo_url_base + urlencode(params)

# print(weibo_url)
